/*
 * Copyright 2023-2024, Haiku, Inc. All rights reserved.
 * Distributed under the terms of the MIT License.
 *
 * Authors:
 *		Haiku Development Team
 */
#ifndef _KERNEL_ARCH_LOONGARCH64_ARCH_FPU_H_
#define _KERNEL_ARCH_LOONGARCH64_ARCH_FPU_H_

#include <SupportDefs.h>

// LoongArch64 FPU上下文结构
// 包含32个双精度浮点寄存器和FPU控制状态寄存器
typedef struct fpu_context
{
    // 32个双精度浮点寄存器，每个8字节
    double f[32];

    // 浮点控制状态寄存器
    uint32 fcsr;

    // 对齐填充
    uint32 _reserved;
} fpu_context;

#endif /* _KERNEL_ARCH_LOONGARCH64_ARCH_FPU_H_ */